<?php

/**
 * SigmaCMS - Content Management System
 *
 * Copyright (C) 2008 Pavol Biely
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    SigmaCMS
 * @author     Pavol Biely <pavolbiely@gmail.com>
 * @copyright  2008 Pavol Biely
 * @license    http://www.gnu.org/licenses/gpl.txt   GNU General Public License
 * @link       http://pabi3.com/
 * @since      0.1.0
 */

// sigmacms
define('_SIGMACMS','SigmaCMS');

// copying
define('_ADMIN_COPYRIGHT','<a href=\'http://sigmacms.net/\'>SigmaCMS</a> is a system written by <a href=\'http://pabi3.com/\'>Pavol Biely</a> intended to manage content on the internet.<br />It is distributed absolutely free without any warranty under the terms of the <a href=\'http://www.fsf.org/licensing/licenses/gpl.html\'>GNU/GPL3</a> license.');

// administration
define('_ADMIN','Administration');
define('_ADMIN_SITE','Site');
define('_ADMIN_BACK','Back');
define('_ADMIN_RESTRICTED_SECTION','You are not allowed to access this section.');
define('_ADMIN_MEMBER','Administrator');
define('_ADMIN_INFO','You must log in before you can manage the site content. If you are not authorized to perform any action here, leave this area now or request your username and password from the site administrator.');
define('_ADMIN_NOTICE','Notice');
define('_ADMIN_ERROR','Error');
define('_ADMIN_RETURN','Return');
define('_ADMIN_ACTIONS','Actions');
define('_ADMIN_OPTIONS','Options');
define('_ADMIN_ADD','Add');
define('_ADMIN_EDIT','Edit');
define('_ADMIN_DELETE','Delete');
define('_ADMIN_RENAME','Rename');
define('_ADMIN_CHANGE','Change');
define('_ADMIN_YES','Yes');
define('_ADMIN_NO','No');
define('_ADMIN_SELECT_ALL','Select All');
define('_ADMIN_DESELECT_ALL','Deselect All');
define('_ADMIN_LOGGEDINAS','You are logged in as:');

// important notices
define('_ADMIN_NOTICE_ACTION_UNALLOWED_CHARS','Action contains not allowed characters.');
define('_ADMIN_NOTICE_PLUGIN_MUST_BE_INSTALLED','Plugin must be installed before you can administrate it.');
define('_ADMIN_NOTICE_UNKNOWN_ACTION_CALLED','An unknown action called.');
define('_ADMIN_NOTICE_CLASS_NOT_FOUND','Class was not found.');
define('_ADMIN_NOTICE_PAGE_NOT_FOUND','Page was not found.');

// authorization
define('_ADMIN_AUTHORIZATION','Authorization');
define('_ADMIN_LOGIN','Log In');
define('_ADMIN_LOGOUT','Log Out');
define('_ADMIN_USERNAME','Username');
define('_ADMIN_PASSWORD','Password');

// testing questions & answers
define('_ADMIN_SURE','Are you sure you want to perform this action?');
define('_ADMIN_SURE_NO','No, I am not');
define('_ADMIN_SURE_YES','Yes, I am');

// plugins
define('_ADMIN_PLUGINS','Plugins');
define('_ADMIN_PLUGINS_NO','There are no plugins to display.');
define('_ADMIN_PLUGINS_NO_TO_INSTALL','There are no plugins to install.');
define('_ADMIN_PLUGINS_NAME','Name');
define('_ADMIN_PLUGINS_AUTHOR','Author');
define('_ADMIN_PLUGINS_VERSION','Version');
define('_ADMIN_PLUGINS_STATUS','Status');
define('_ADMIN_PLUGINS_STATUS_ENABLED','Enabled');
define('_ADMIN_PLUGINS_STATUS_DISABLED','Disabled');
define('_ADMIN_PLUGINS_ACTIVE','Active?');
define('_ADMIN_PLUGINS_PRIORITY','Priority');
define('_ADMIN_PLUGINS_PRIORITY_UP','Priority up');
define('_ADMIN_PLUGINS_PRIORITY_DOWN','Priority down');
define('_ADMIN_PLUGINS_ADD','Add a new plugin');
define('_ADMIN_PLUGINS_EDIT','Edit plugin');
define('_ADMIN_PLUGINS_INSTALL','Install plugin');
define('_ADMIN_PLUGINS_INSTALL_SUBMIT','Install');
define('_ADMIN_PLUGINS_INSTALL_ALREADY_EXISTS','Plugin with the same ID (%s) already exists.');
define('_ADMIN_PLUGINS_INSTALL_NOT_INSTANCEOF_PLUGINAPI','This plugin is damaged (it does not implement PluginAPI interface) and it is not possible to install it.');
define('_ADMIN_PLUGINS_INSTALL_FOLLOWING_NEEDED','Following plugins need to be installed:');
define('_ADMIN_PLUGINS_INSTALL_INSTALLED',' - already installed');
define('_ADMIN_PLUGINS_INSTALL_NOT_INSTALLED',' - needs to be installed');
define('_ADMIN_PLUGINS_INSTALL_SQL_ERROR','An SQL error occurred while installing the plugin.');
define('_ADMIN_PLUGINS_INSTALL_UNSUCCESSFULL','Installation was not successful.');
define('_ADMIN_PLUGINS_INSTALL_NOT_FOUND','Plugin was not found in %s.');
define('_ADMIN_PLUGINS_UNINSTALL','Uninstall plugin');
define('_ADMIN_PLUGINS_UNINSTALL_ERROR','An error occurred while uninstalling the plugin.');
define('_ADMIN_PLUGINS_UNINSTALL_UNSUCCESSFULL','Uninstallation was not successfull.');
define('_ADMIN_PLUGINS_HELP','Help');
define('_ADMIN_PLUGINS_HELP_PARSE','Keywords');
define('_ADMIN_PLUGINS_HELP_EVENT','Events');
define('_ADMIN_PLUGINS_HELP_ACTION','Actions');
define('_ADMIN_PLUGINS_HELP_NOSPECIAL','This plugin does not have any keywords, events or actions.');
define('_ADMIN_PLUGINS_NOT_ACTIVATED','Plugin %s is not activated.');
define('_ADMIN_PLUGINS_NOT_INSTALLED','Plugin %s is not installed.');
define('_ADMIN_PLUGINS_NOT_FOUND','Plugin was not found.');

// skins
define('_ADMIN_SKINS','Skins');
define('_ADMIN_SKINS_ID','ID/URL');
define('_ADMIN_SKINS_CTYPE','Content-Type');
define('_ADMIN_SKINS_CONTENT','Content');
define('_ADMIN_SKINS_DIR','Directory');
define('_ADMIN_SKINS_ADD','Add Skin');
define('_ADMIN_SKINS_EDIT','Edit Skin');
define('_ADMIN_SKINS_DELETE','Delete Skin');
define('_ADMIN_SKINS_EMPTY','There are no skins to display.');
define('_ADMIN_SKINS_EMPTY_ALONE','There are no skins to display. You must create at least the basic skin - %s.');
define('_ADMIN_SKINS_EMPTY_DIRS','There are no directories for skins. You must create a directory first.');
define('_ADMIN_SKINS_NOT_FOUND','Requested skin was not found.');
define('_ADMIN_SKINS_ERROR_ID','ID/URL is required. It can contain only alphanumeric characters and dashes.');
define('_ADMIN_SKINS_ERROR_CTYPE','Content-Type is required.');
define('_ADMIN_SKINS_ERROR_SAVE','An error occurred while saving the skin file.');
define('_ADMIN_SKINS_ERROR_SQL','An error occurred in SQL query.');
define('_ADMIN_SKINS_ERROR_ID_EXISTS','The same ID/URL is already used by another skin.');
define('_ADMIN_SKINS_NEW_INSTALLED','There were found skins in the <span class=\'blue\'>%s</span> directory which were not found in the database, so SigmaCMS saved them for you.');

// templates
define('_ADMIN_TEMPLATES','Templates');
define('_ADMIN_TEMPLATES_KEYWORDS','Available keywords');
define('_ADMIN_TEMPLATES_ADD_CONTENT','Add content');
define('_ADMIN_TEMPLATES_ADD_ROW','Add row');
define('_ADMIN_TEMPLATES_REMOVE_ROW','Remove row');

// languages
define('_ADMIN_LANGUAGES','Languages');
define('_ADMIN_LANGUAGES_ONE','Language');
define('_ADMIN_LANGUAGES_ACTIVE','Active?');
define('_ADMIN_LANGUAGES_INSTALL_STATUS','Installation status');
define('_ADMIN_LANGUAGES_INSTALL','Install');
define('_ADMIN_LANGUAGES_UNINSTALL','Uninstall');

// members
define('_ADMIN_MEMBERS','Members');
define('_ADMIN_MEMBERS_NO','There are not members to display.');
define('_ADMIN_MEMBERS_NOT_FOUND','Member %s was not found.');
define('_ADMIN_MEMBERS_ADMIN','Administrator\'s account; unblockable');
define('_ADMIN_MEMBERS_BLOCKED','Blocked');
define('_ADMIN_MEMBERS_UNBLOCKED','Unblocked');
define('_ADMIN_MEMBERS_STATUS','Status');
define('_ADMIN_MEMBERS_USERNAME','Username');
define('_ADMIN_MEMBERS_USERNAME_ERROR','Username must be longer than 3 characters and it cannot contain unallowed characters.');
define('_ADMIN_MEMBERS_PASSWORD','Password');
define('_ADMIN_MEMBERS_PASSWORD_ERROR','Password must be longer than 4 characters.');
define('_ADMIN_MEMBERS_PASSWORD_ACTUAL_ERROR','You have entered wrong actual password.');
define('_ADMIN_MEMBERS_BLOCK','Block account?');
define('_ADMIN_MEMBERS_ADD','Add Member');
define('_ADMIN_MEMBERS_EDIT','Edit Member');
define('_ADMIN_MEMBERS_DELETE','Delete Member');
define('_ADMIN_MEMBERS_GROUP','Group');
define('_ADMIN_MEMBERS_GROUP_UNKNOWN','Without group');
define('_ADMIN_MEMBERS_GROUP_MEMBERS','Members in group');
define('_ADMIN_MEMBERS_GROUP_ADD','Add Group');
define('_ADMIN_MEMBERS_GROUP_ADD_ERROR','An error occurred while adding a new group. Maybe the same group already exists.');
define('_ADMIN_MEMBERS_GROUP_ADD_ERROR_NAME','Group name must be at least 3 characters long.');
define('_ADMIN_MEMBERS_GROUP_EDIT','Edit Group');
define('_ADMIN_MEMBERS_GROUP_EDIT_ADMIN','You cannot edit this a group of which the superadministrator is a member.');
define('_ADMIN_MEMBERS_GROUP_EDIT_ERROR','An error occurred while editing a new group. Maybe the same group already exists.');
define('_ADMIN_MEMBERS_GROUP_EDIT_ERROR_NAME','Group name must be at least 3 characters long.');
define('_ADMIN_MEMBERS_GROUP_DELETE','Delete Group');
define('_ADMIN_MEMBERS_GROUP_DELETE_ERROR','You must delete members of this group before you can delete it.');
define('_ADMIN_MEMBERS_GROUP_DELETE_ADMIN','You cannot delete a group of which the superadministrator is a member.');
define('_ADMIN_MEMBERS_GROUP_LIST','Group List');
define('_ADMIN_MEMBERS_SECTIONS','Sections');
define('_ADMIN_MEMBERS_CHANGE_PASSWORD','Change Password');
define('_ADMIN_MEMBERS_CHANGE_PASSWORD_ORIGINAL','Actual password');
define('_ADMIN_MEMBERS_CHANGE_PASSWORD_FIRST','New password');
define('_ADMIN_MEMBERS_CHANGE_PASSWORD_SECOND','New password (again)');
define('_ADMIN_MEMBERS_CHANGE_PASSWORD_DIFFERENT','Passwords are different.');
define('_ADMIN_MEMBERS_CHANGE_PASSWORD_ERROR','An error occurred while updating password.');
define('_ADMIN_MEMBERS_CHANGE_GROUP','Change Group');

// configuration
define('_ADMIN_CONFIGURATION','Configuration');
define('_ADMIN_CONFIGURATION_GENERAL','General Settings');
define('_ADMIN_CONFIGURATION_GENERAL_H1','Heading');
define('_ADMIN_CONFIGURATION_GENERAL_TITLE','Title');
define('_ADMIN_CONFIGURATION_GENERAL_DESCRIPTION','Description');
define('_ADMIN_CONFIGURATION_GENERAL_KEYWORDS','Keywords');
define('_ADMIN_CONFIGURATION_SKIN','Skin');
define('_ADMIN_CONFIGURATION_SKIN_PAGE','Page skin');
define('_ADMIN_CONFIGURATION_SKIN_ADMIN','Administration skin');
define('_ADMIN_CONFIGURATION_LANGUAGE','Language');
define('_ADMIN_CONFIGURATION_COOKIES','Cookies');
define('_ADMIN_CONFIGURATION_COOKIES_NAME_PREFIX','Cookie prefix');
define('_ADMIN_CONFIGURATION_COOKIES_EXPIRATION','Expiration');
define('_ADMIN_CONFIGURATION_COOKIES_PATH','Path');
define('_ADMIN_CONFIGURATION_COOKIES_DOMAIN','Domain');
define('_ADMIN_CONFIGURATION_COOKIES_SECURE','Secure');
define('_ADMIN_CONFIGURATION_COOKIES_SECURE_NOTE','Before enabling this option, check if your host support SSL or you will not be able to log in anymore.');
define('_ADMIN_CONFIGURATION_COOKIES_HTTPONLY','HTTP only');
define('_ADMIN_CONFIGURATION_COOKIES_HTTPONLY_NOTE','Disabling this option might increase the risk of XSS attacks. However, there is not many browsers supporting HttpOnly cookies.');

// filemanager
define('_ADMIN_FILEMANAGER','Filemanager');
define('_ADMIN_FILEMANAGER_BACK','Back');
define('_ADMIN_FILEMANAGER_DESC_TMP','temporary files');
define('_ADMIN_FILEMANAGER_DESC_SKINS','directory for skins');
define('_ADMIN_FILEMANAGER_DESC_UPLOAD','uploaded files');
define('_ADMIN_FILEMANAGER_TYPE','Type');
define('_ADMIN_FILEMANAGER_MKDIR','Make directory');
define('_ADMIN_FILEMANAGER_MKDIR_ERROR','"An error occurred while creating a directory. Check if CHMOD of the parent directory is set to 777.');
define('_ADMIN_FILEMANAGER_MKDIR_NAME','Directory');
define('_ADMIN_FILEMANAGER_MKDIR_NAME_ERROR','Directory name can contain only alphanumerical characters, _ and -.');
define('_ADMIN_FILEMANAGER_MKFILE','Make file');
define('_ADMIN_FILEMANAGER_MKFILE_ERROR','An error occurred while creating a file. Check if CHMOD of the parent directory is set to 777.');
define('_ADMIN_FILEMANAGER_MKFILE_NAME','File');
define('_ADMIN_FILEMANAGER_MKFILE_NAME_ERROR','Filename must not contain slashes.');
define('_ADMIN_FILEMANAGER_UPLOAD','Upload File');
define('_ADMIN_FILEMANAGER_UPLOAD_FILE','Filename');
define('_ADMIN_FILEMANAGER_RENAME','Rename filename');
define('_ADMIN_FILEMANAGER_OLDNAME','Old name');
define('_ADMIN_FILEMANAGER_NEWNAME','New name');
define('_ADMIN_FILEMANAGER_FILENAME','Filename');
define('_ADMIN_FILEMANAGER_FILESIZE','Size');
define('_ADMIN_FILEMANAGER_FILECONTENT','File content');
define('_ADMIN_FILEMANAGER_PATHNOTFOUND','Path was not found.');
define('_ADMIN_FILEMANAGER_FILENOTFOUND','File was not found.');
define('_ADMIN_FILEMANAGER_FILENAME_ERROR','Filename is required.');
define('_ADMIN_FILEMANAGER_RENAME_ERROR','Renaming was not successfull. Check your access rights for this filename.');
define('_ADMIN_FILEMANAGER_DIR_EXISTS_ERROR','Directory with the same name already exists.');
define('_ADMIN_FILEMANAGER_FILE_EXISTS_ERROR','File with the same name already exists.');
define('_ADMIN_FILEMANAGER_DELETEDIR_ERROR','An error occurred while deleting this directory. Check if this directory is empty and if you have enough access rights to delete it.');
define('_ADMIN_FILEMANAGER_DELETEFILE_ERROR','An error occurred while deleting this file. Check if you have enough access rights to delete it.');
define('_ADMIN_FILEMANAGER_BINARYFILE_ERROR','You cannot modify binary files.');
define('_ADMIN_FILEMANAGER_EMPTY','This directory is empty.');

// backup
define('_ADMIN_BACKUP','Backup');
define('_ADMIN_BACKUP_DB','Database backup');
define('_ADMIN_BACKUP_RESTORE_DB','Restore database');
define('_ADMIN_BACKUP_RESTORE_DUMP','Dump file');
define('_ADMIN_BACKUP_RESTORE_OK','Database has been successfully restored.');
define('_ADMIN_BACKUP_RESTORE_ERROR','An error occurred while restoring database.');
define('_ADMIN_BACKUP_RESTORE_SUBMIT','Restore');
define('_ADMIN_BACKUP_TABLES','Tables');
define('_ADMIN_BACKUP_TABLES_SELECT','You must select at least one table');
define('_ADMIN_BACKUP_OPTION_NOPREFIX','Without prefix');
define('_ADMIN_BACKUP_OPTION_STRUCTURE','Structure');
define('_ADMIN_BACKUP_OPTION_DATA','Data');
define('_ADMIN_BACKUP_OPTION_XHTML','XHTML');
define('_ADMIN_BACKUP_OPTION_GZIP','Gzip');
define('_ADMIN_BACKUP_SUBMIT','Backup');

// logs
define('_ADMIN_LOGS','Logs');
define('_ADMIN_LOGS_DATE','Date');
define('_ADMIN_LOGS_IPADDRESS','IP Address');
define('_ADMIN_LOGS_MEMBER','Member');
define('_ADMIN_LOGS_MESSAGE','Message');
define('_ADMIN_LOGS_NOT_FOUND','Log was not found.');
define('_ADMIN_LOGS_EMPTY','Log is empty.');
define('_ADMIN_LOGS_TRUNCATE','Truncate log');

// logging
define('_LOG_ACTION_BAD','Invalid action called.');
define('_LOG_ACTION_UNDEFINED','Undefined action called - %s->%s()');
define('_LOG_ACTION_UNKNOWN','Unknown action called - %s->%s()');
define('_LOG_DRIVER_PLUGIN_UNREGISTERED','Unregistered plugin called - %s.');
define('_LOG_DRIVER_PLUGIN_UNKNOWN','Unknown method called in plugin - %s.');
define('_LOG_MEMBER_LOGIN','Member %s was successfully logged in.');
define('_LOG_MEMBER_LOGIN_BLOCKED','Member %s was trying to log in but his account is blocked.');
define('_LOG_MEMBER_LOGIN_FAILED','Someone was trying to log in with username %s and password %s.');
define('_LOG_MEMBER_LOGOUT','Member %s was successfully logged out.');
define('_LOG_PLUGIN_SCRIPTS_NOT_FOUND','Script for plugins %s was not found (%s).');

// administration logging
define('_LOG_ADMIN_RESTRICTED','Member %s was trying to access section %s. He was blocked, because he does not have permission to access this section.');
define('_LOG_ADMIN_ADMINSKIN_NOT_FOUND','CSS file %s for administration was not found.');
define('_LOG_ADMIN_BACKUP_STORE','Database backup file was successfully created.');
define('_LOG_ADMIN_BACKUP_RESTORE','Database has been restored.');
define('_LOG_ADMIN_BACKUP_RESTORE_ERROR','Database has not been restored completely. %d SQL errors occurred.');
define('_LOG_ADMIN_CONFIGURATION','Configuration has been updated.');
define('_LOG_ADMIN_FILEMANAGER_EDIT','File %s was updated.');
define('_LOG_ADMIN_FILEMANAGER_RENAME_DIR','Directory %s was renamed to %s.');
define('_LOG_ADMIN_FILEMANAGER_RENAME_FILE','File %s was renamed to %s.');
define('_LOG_ADMIN_FILEMANAGER_DELETE_FILE','File %s was deleted.');
define('_LOG_ADMIN_FILEMANAGER_DELETE_DIRECTORY','Directory %s was deleted.');
define('_LOG_ADMIN_FILEMANAGER_MKDIR','Directory %s was created.');
define('_LOG_ADMIN_FILEMANAGER_MKFILE','File %s was created.');
define('_LOG_ADMIN_FILEMANAGER_UPLOAD','File %s was uploaded.');
define('_LOG_ADMIN_LANGUAGE_ADD','Language (%s) was added');
define('_LOG_ADMIN_LANGUAGE_DELETE','Language (%s) was deleted');
define('_LOG_ADMIN_MEMBER_ADD','Member %s was added.');
define('_LOG_ADMIN_MEMBER_EDIT','Member %s was updated.');
define('_LOG_ADMIN_MEMBER_BLOCK_ON','Member %s was blocked.');
define('_LOG_ADMIN_MEMBER_BLOCK_OFF','Member %s was unblocked.');
define('_LOG_ADMIN_MEMBER_DELETE','Member %s was deleted.');
define('_LOG_ADMIN_MEMBER_GROUP_ADD','Group %s was added.');
define('_LOG_ADMIN_MEMBER_GROUP_EDIT','Group %s was updated.');
define('_LOG_ADMIN_MEMBER_GROUP_DELETE','Group %s was deleted.');
define('_LOG_ADMIN_PLUGIN_INSTALL','Plugin %s was installed.');
define('_LOG_ADMIN_PLUGIN_UNINSTALL','Plugin %s was uninstalled.');
define('_LOG_ADMIN_SKIN_ADD','Skin %s was added to the directory %s.');
define('_LOG_ADMIN_SKIN_EDIT','Skin %s was modified in the directory %s.');
define('_LOG_ADMIN_SKIN_DELETE','Skin %s was deleted from the directory %s.');

// class Media
define('_MEDIA_UPLOAD_ERR_OK','File was successfully uploaded.');
define('_MEDIA_UPLOAD_ERR_INI_SIZE','Filesize is larger than server limit.');
define('_MEDIA_UPLOAD_ERR_FORM_SIZE','Filesize is larger than allowed filesize.');
define('_MEDIA_UPLOAD_ERR_PARTIAL','File was uploaded, but not completely.');
define('_MEDIA_UPLOAD_ERR_NO_FILE','System failed to upload the file.');
define('_MEDIA_UPLOAD_ERR_NO_TMP_DIR','Temporary directory was not found.');
define('_MEDIA_UPLOAD_ERR_CANT_WRITE','Cannot write to disk.');
define('_MEDIA_UPLOAD_ERR_UNKNOWN','An unexpected error occurred while saving the file.');
define('_MEDIA_UPLOAD_DIR_EXISTS','Target directory does not exist.');
define('_MEDIA_UPLOAD_FILE_EXISTS','The same file already exists.');
define('_MEDIA_UPLOAD_FILTER','Allowed file types are: %s');
